@extends("admin.common.admin")
@section("cnt")

<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i>
    首页
    <span class="c-gray en">&gt;</span>
    分配权限
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
        <i class="Hui-iconfont">&#xe68f;</i>
    </a>
</nav>
<article class="page-container">
    <form action="{{ route("admin.role.auth",$role) }}" method="post" class="form form-horizontal" id="form-admin-role-add">
        @csrf
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-3">权限分配：</label>
            <div class="formControls col-xs-8 col-sm-9">
                <dl class="permission-list">
                    <dt>
                        <label>
                            <input type="checkbox" value="" name="user-Character-0" id="user-Character-1">
                            用户中心</label>
                    </dt>
                    <dd>
                        <dl class="cl">
                            @foreach($list as $item)
                            <dd>
                                <label class="">
                                    <input type="checkbox" @if(in_array($item["id"],$list_auth)) checked @endif value="{{ $item["id"] }}" name="auth_id[]">
                                        {{ $item["html"] }}{{ $item["node_name"] }}
                                </label>
                            </dd>
                            @endforeach
                        </dl>
                    </dd>
                </dl>
            </div>
        </div>
        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <button type="submit" class="btn btn-success radius" id="admin-role-save" name="admin-role-save"><i class="icon-ok"></i> 确定</button>
            </div>
        </div>
    </form>
</article>
@endsection
@section("js")
<script type="text/javascript">

</script>
@endsection
